#include "mainwindow.h"

#include <QApplication>
#include "config.h"

int main(
    int argc, char *argv[])
{
    QApplication a(argc, argv);
    qCfg->registerFileRelation(qApp->applicationName(), qApp->applicationFilePath(), ".mypro", "xxx");
    if(argc > 1) {
        qCfg->setCurrentProjectPath(argv[1]);
    }
    MainWindow w;
    w.show();
    return a.exec();
}
